package API.ObjectsAPI;

import java.util.Objects;

public class AboutNull {
    public static void main(String[] args) {
        Object obj1 = new Object();
        Object obj2 = null;
        System.out.println(Objects.isNull(obj1));
        System.out.println(Objects.isNull(obj2));
        System.out.println(Objects.nonNull(obj1));
        System.out.println(Objects.nonNull(obj2));
    }
}
